﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="userList.aspx.cs" Inherits="admin_userList" MaintainScrollPositionOnPostback="true" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="media/css/bootstrap.min.css" rel="stylesheet" />
    <link href="css/myCss.css" rel="stylesheet" />
    <script src="../Scripts/jquery-1.10.2.min.js"></script>

    <script src="media/js/bootstrap-table-zh-CN.js"></script>
    <script src="media/js/bootstrap-table.js"></script>
    <script src="businessJS/dataJS.js"></script>
    <script type="text/javascript">
        window.onload = function () { window.parent.scrollTo(0, 0); }
        $(document).ready(function () {
            IsEnableLinkButton();
        });

    </script>
</head>
<body style="overflow: hidden; scrolling: no">
    <form id="form1" runat="server" action="#" method="post">
        <!--当前第几页-->
        <asp:HiddenField runat="server" ID="hfdPage" Value="1" />
        <!--每页最大显示条数-->
        <asp:HiddenField runat="server" ID="hfdMaxPage" Value="1" />
        <div class="row-fluid">
            <div class="span12">
                <!-- BEGIN 页面标题-->
                <h3 class="page-title">用户管理<small></small>
                </h3>
                <!-- BEGIN 导航-->
                <ul class="breadcrumb">
                    <li>
                        <i class="icon-home"></i>
                        <a href="index.html">用户管理</a>
                        <i class="icon-angle-right"></i>
                    </li>
                    <li>
                        <a href="#">用户列表</a>
                        <i class="icon-angle-right"></i>
                    </li>
                </ul>
                <!-- BEGIN 导航-->
                <!-- END 页面标题-->
            </div>
        </div>
        <div class="row-fluid inbox">
            <!-- BEGIN 页面正文内容-->
            <div class="table-responsive">
                <table class="table table-hover table-striped" id="userTable" runat="server">
                    <thead>
                        <tr>
                            <th data-field="sellRecordId" data-sortable="true" style="width: 200px;">Page</th>
                            <th data-field="sellRecordId" data-sortable="true" style="width: 200px;">Visits</th>
                            <th data-field="sellRecordId" data-sortable="true" style="width: 200px;">% New Visits</th>
                            <th data-field="sellRecordId" data-sortable="true">Revenue</th>
                            <th data-field="sellRecordId" data-sortable="true" style="width: 100px">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                    </tbody>
                </table>
            </div>
            <div id="showPage">
                <nav>
                    <ul class="pagination">
                        <li>
                            <div style="line-height: 50px; padding-right: 10px">
                                当前第<asp:Label runat="server" ID="lblCurrentPage">1</asp:Label>页,共<asp:Label runat="server" ID="lblTotal">12</asp:Label>条数据
                            </div>
                        </li>
                        <li><a href="#">上一页</a></li>
                        <li><a href="#">1</a></li>
                        <li><a href="#">2</a></li>
                        <li><a href="#">3</a></li>
                        <li><a href="#">4</a></li>
                        <li><a href="#">5</a></li>
                        <li><a href="#">下一页</a></li>
                    </ul>
                </nav>
            </div>
            <!-- END 页面正文内容-->
        </div>
    </form>
</body>
</html>
<script type="text/javascript">
    $(document).ready(function () {
        $(".del").click(function () {
            if (confirm("是否要删除该用户?")) {
                var delId = $(this).attr("id");
                var result = '<%=deleteUser("' + delId + '") %>';
                if (result) {
                    alert("用户已删除！");
                } else {
                    alert("系统错误，请检查网络！");
                }

            }
        });
    });
</script>
